<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN""http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
> mod_lighttpd </TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE=" warc-tools version 0.17  A library for data archiving "
HREF="index.html"><LINK
REL="UP"
TITLE=" Detailed utilisation "
HREF="c126.html"><LINK
REL="PREVIOUS"
TITLE=" mod_apache "
HREF="x287.html"><LINK
REL="NEXT"
TITLE=" Programming with the warc library "
HREF="c319.html"></HEAD
><BODY
CLASS="sect1"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>warc-tools version 0.17  A library for data archiving</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="x287.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
>Chapter 3. Detailed utilisation</TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="c319.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="sect1"
><H1
CLASS="sect1"
><A
NAME="AEN300"
>3.8. mod_lighttpd</A
></H1
><P
>&#13;  To know how to peroform the installation and the configuration of a lighttpd server to make either warc.cgi or warc.fcgi moules run, we can read the section reserved 
  to mod_lighttpd in the file <TT
CLASS="filename"
>"doc/install"</TT
> in warc source code.
  </P
><P
>&#13;  If we use a lighttpd server, we can use mod cgi and mod fastcgi to get warc resources.
  In this case, we use an url in the rest format but we have to precede this url by the wanted script cgi or fastcgi.
  </P
><P
>&#13;  If we start a lighttpd server in localhost at port 3000, we can type this url to list the headers and anvl fields of the WARC Records from a WARC file <TT
CLASS="filename"
>"home/nsr/test.warc.gz"</TT
> by using cgi script.
 
  
  <DIV
CLASS="example"
><A
NAME="AEN307"
></A
><P
><B
>Example 3-17.  How to send a request to a lighttpd server with a browser using warc.cgi script. </B
></P
><P
><IMG
SRC="captreq3.png"></P
></DIV
>
  </P
><P
>&#13;  In the same way, we can type the same url to list the headers and anvl fields of the WAR Records from a WARC file <TT
CLASS="filename"
>"home/nsr/test.warc.gz"</TT
> 
  by using fastcgi script.
  
  <DIV
CLASS="example"
><A
NAME="AEN314"
></A
><P
><B
>Example 3-18.  How to send a request to a lighttpd server with a browser using the fastcgi. </B
></P
><P
><IMG
SRC="captreq4.png"></P
></DIV
>
  </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="x287.html"
ACCESSKEY="P"
>Prev</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Home</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="c319.html"
ACCESSKEY="N"
>Next</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>mod_apache</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="c126.html"
ACCESSKEY="U"
>Up</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>Programming with the warc library</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>